{% extends "base_generic.html" %}

{% block content %}
  <div class="card" style="max-width: 500px; margin: 50px auto; text-align: center;">
    <h1>删除图书</h1>
    <p style="font-size: 1.1em; margin-bottom: 20px;">确定要删除图书: <strong class="text-danger">{{ object }}</strong> 吗？</p>
    <form action="" method="POST">
      {% csrf_token %}
      <button type="submit" class="btn btn-danger">确认删除</button>
      <a href="{{ object.get_absolute_url }}" class="btn btn-secondary" style="margin-left: 10px;">取消</a>
    </form>
  </div>
{% endblock %}